package com.zl.tby.screen.vo.mountains;

import lombok.Data;

import java.math.BigDecimal;

/**
 * 上报事件详情
 * @author changpeng
 * @version 1.0
 * @since 2024/10/27 10:08
 */
@Data
public class TbyReportEventInformation {
    private Long id;
    /**用来关联附件表的标识*/
    private String guid;
    /**上报人员姓名 */
    private String name;
    /**上报时间 */
    private String reportDate;
    /**发生地点 */
    private String address;
    /**时间类型 */
    private String eventType;
    /**备注 */
    private String remark;
    /**处理时间 */
    private String handleTime;
    /**处理人 */
    private String handleName;
    /**处理结果 */
    private Integer respondStatus;
    private String result;
    /**备注 */
    private String handleRemark;
    /**处置前照片 */
    private String befroeRespondImg;
    /**处置后照片 */
    private String afterRespondImg;
    private BigDecimal longitude;
    private BigDecimal latitude;

    public void convert() {
        if (this.getRespondStatus() != null) {
            if (this.getRespondStatus().compareTo(0) == 0) {
                this.result = "未处置";
            } else if (this.getRespondStatus().compareTo(1) == 0) {
                this.result = "立案";
            } else if (this.getRespondStatus().compareTo(2) == 0) {
                this.result = "忽略";
            } else if (this.getRespondStatus().compareTo(3) == 0) {
                this.result = "已处置";
            }
        } else {
            this.result = "";
        }
    }
}
